using Core;

namespace Server;

[PlayCommand(CommandKey.HeartBeat)]
public sealed class HeartBeat : PlayRespAsyncCommand<HeartBeatPacket, HeartBeatRespPacket>
{
    protected override ValueTask<HeartBeatRespPacket> ExecuteAsync(PlaySession session, HeartBeatPacket packet)
    {
        return ValueTask.FromResult(new HeartBeatRespPacket
        {
            ServerTimestamp = 13,
        });
    }
}